<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录系统</title>
<script type="text/javascript">
function changCode(obj){
	var timeNow = new Date().getTime();
	obj.src="checkCode?time="+timeNow;
}

</script>
</head>
<body >
	<div style="width:300px;height:100px;position:absolute;left:50%;top:50%;margin:-100px 0 0 -150px;">
		<fieldset>
			<legend>用户登录</legend>
			<form action="login" method="post">
			<table style="margin : 0 auto;">
				<tr>
					<td align="right">用户名 ：</td>
					<td><input type="text" name="username" value="admin"/></td>
				</tr>
				<tr>
					<td align="right">密&nbsp;&nbsp;码 ：</td>
					<td><input type="password" name="password" value="admin"/></td>
				</tr>
				<tr>
					<td align="right">验证码 ：</td>
					<td><input type="text" name="checkCode" /></td>
				</tr>
				<tr>
					<td align="right"></td>
					<td><img style="float: left" src="checkCode" onclick="changCode(this);"/><input style="float: right" type="submit" name="登陆"/></td>
				</tr>
				<tr>
					<td align="center" colspan="2">${message}</td>
				</tr>
			</table>
			</form>
			<br/>
		</fieldset>
	</div>
</body>
</html>